package com.ex.android_layout_project.main;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.alibaba.fastjson.JSON;
import com.ex.android_layout_project.R;

import java.io.IOException;
import java.io.InputStream;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void initData() {
        try {
            InputStream inputStream = getResources().openRawResource(R.raw.dstqmb_ljka);
            DataBean dataBean = JSON.parseObject(inputStream, DataBean.class);
            dataBean.getContentList();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}